import Vue from 'vue'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import App from './App.vue'
import router from './router'
import Axios from "axios";

//为每一个请求路径带/api前缀
Axios.defaults.baseURL="/api"

//为Vue的每一个实例添加一个属性
Vue.prototype.axios=Axios

Vue.config.productionTip = false
Vue.use(ElementUI);

new Vue({
  router,
  render: function (h) { return h(App) }
}).$mount('#app')
